package com.xiaoye.app.mapper;

import java.sql.SQLException;
import java.util.List;

import com.xiaoye.app.common.MsgReturn;
import com.xiaoye.app.entity.User;

/**
 * 
 * @author xiaoye
 * @date 2018年5月14日
 * 
 *       用户持久层
 *
 */
public interface UserMapper {
	/**
	 * 查询用户信息
	 * 
	 * @param user
	 * @return
	 */
	public List<User> selectUserList(User user) throws SQLException;

	public int selectUserListCount(User user) throws SQLException;

	/**
	 * 登陸
	 * 
	 * @param user
	 * @return
	 */
	public User login(User user) throws SQLException;
}
